package main

func Romdon()  {
	ch  := make(chan int,1)
	for  {
		select {
		case ch <- 0:
		case ch <- 1:
		}
		i := <- ch
		println("revice value ",i)
	}
}

func BufChan()  {
	ch := make(chan int,1024)
	for i := range ch {
		println("revice ",i)
	}
}

func main() {
	BufChan()
}
